package com.allen.dto;

import lombok.Data;
import org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity;
import org.camunda.bpm.engine.impl.persistence.entity.SuspensionState;
import org.camunda.bpm.engine.impl.persistence.entity.TaskEntity;
import org.camunda.bpm.engine.impl.task.TaskDefinition;
import org.camunda.bpm.engine.task.DelegationState;
import org.camunda.bpm.engine.task.Task;

import java.util.Date;

@Data
/**
 * @program: spring-boot-demo
 * @className TaskData
 * @description:
 * @author: zp
 * @create: 2024-09-20 17:14
 * @Version 1.0
 **/
public class TaskData {
    private String id;
    private String owner;
    private String assignee;
    private DelegationState delegationState;

    private String parentTaskId;

    private String name;
    private String description;
    private int priority = Task.PRIORITY_NORMAL;
    private Date createTime; // The time when the task has been created
    private Date dueDate;
    private Date followUpDate;
    private int suspensionState = SuspensionState.ACTIVE.getStateCode();
    private String tenantId;


    // execution
    private String executionId;

    private String processInstanceId;

    private String processDefinitionId;


    // taskDefinition
    private String taskDefinitionKey;

    private boolean isDeleted;
    private String deleteReason;

    private String eventName;
}
